#!/usr/bin/env python
# -*- coding: UTF-8 -*-

''' 
tile.py

Copyright 2008 Alejandro Moreno <alexmoreno@gmail.com>

Logical representation of one square in a Langrisser map.
'''

try:
	import os
	import pygame
	import sys
except ImportError, err:
	print "Could not load %s module." % (err)
	sys.exit(2)

class Tile(object):
	def __init__(self, x, y):
		self.x = x
		self.y = y

	def neighbours(self):
		x = self.x
		y = self.y
		return [Tile(x, y-1), Tile(x+1, y), Tile(x, y+1), Tile(x-1, y)]
